import React from "react";
import { useRoutes, BrowserRouter } from "react-router-dom";
import { routes } from "./router";
import WhileList from "./hooks/WhileList";
function App() {
  const El = () => useRoutes(routes);
  return (
    <BrowserRouter>
      <WhileList>
        <El></El>
      </WhileList>
    </BrowserRouter>
  );
}

export default App;
